package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heima.model.common.dtos.NewsAuthDto;
import com.heima.model.common.pojos.wemedia.WmNews;
import com.heima.model.common.pojos.wemedia.WmNewsWithAuthor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author 陈辉
 * @data 2024 10:27
 */
@Mapper
public interface WmNewsMapper extends BaseMapper<WmNews> {

    /**
     * 查询文章列表
     *
     * @param authDto
     * @return
     */
    List<WmNewsWithAuthor> selectWmNewsWithAuthor(@Param("authDto") NewsAuthDto authDto);


}
